<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp" %>
<html>
<head>
<script type="text/javascript" src="${ctx }/scripts/public3.js"></script>
<script type="text/javascript" src="${ctx }/pages/com/ce/pms/house/proRightModification/proRight.js" ></script>
<script>
		/**
	 * 功能描述: 打开选择移交物品窗口
	 */

	 var readmeterState  ; //抄表状态

	function openGoodsHandOver(){
		var goodIds = $('goodIds').value;
		var url =PROJECT_NAME_PATH_MYCE+ "/house_proRightModificationAction.do?method=initGoodsHandOver&parentFrameId=goOutEditWinIfm&goodIds="+goodIds;
		top.windowOpen(url,"chooseGoods","${key.choose_handover_goods}",250,350,false,"chooseGoodsIfm");
	}

	/**
	 * 功能描述：打开选择审核人的窗口
	 * @param type 审核人类型 0-费用审核人 1-退伙手续审核人
	 */
	function openChooseAssessor(type){
		var methodName  = "";
		if (type == 0){ //费用审核人
			methodName = "setChangeAssessorInfo";
		}else if (type == 1){ //退伙手续审核人
			methodName = "setOutAssessorInfo";
		}

		var url = "${ctx}/common_employeeQuery.do?method=initSelectPsrsonMain";
	  	url += "&frameName=goOutEditWinIfm";
	  	url += "&callBack="+methodName;
	  	url += "&multiple=false";
		top.windowOpen(url, "selectPerson", "选择审核人", 550, 700,true,"selectPerson");

	}


		//格式化退伙日期，以便在验证提示中使用
       <fmt:formatDate pattern="yyyy-MM-dd" var="outDate" value="${goOut.outDate}" />

		/**
       * 功能描述： 如果当前输入的值小于上次值，抄表异常必填
       */
       function compareTowMeter(){
			if($('readmeter1').checked){
           //上次水表的读数
           var lastWaterValue=$('copyMeterWaterPreReading').value;
           //本次水表的读数
           var currentWaterValue=$('copyMeterWaterReading').value;
           //上次电表的读数
           var lastAmmeterValue=$('copyMeterAmmeterPreReading').value;
           //本次水表读数
           var currentAmmeterValue=$('copyMeterAmmeterReading').value;
			//把各表读数转换为数字
           if(!isNaN(lastWaterValue)){
              lastWaterValue = eval(lastWaterValue);
           }
           if(!isNaN(currentWaterValue)){
             currentWaterValue=eval(currentWaterValue);
           }
           if(!isNaN(lastAmmeterValue)){
             lastAmmeterValue=eval(lastAmmeterValue);
           }
           if(!isNaN(currentAmmeterValue)){
             currentAmmeterValue=eval(currentAmmeterValue);
           }
           //如果上次抄表水表和电表都不为空,比较输入值下上次抄表值
           if(!isNaN(lastWaterValue) && !isNaN(lastAmmeterValue)){
				if(isNaN(currentWaterValue) || isNaN(currentAmmeterValue) || (currentWaterValue < lastWaterValue) || (currentAmmeterValue < lastAmmeterValue))
				{
				 	 $('meterReason').className="aux_intable_require";
            	//	 Validation.changeElmValidate("copyMeterReasonId","select-one-required");
             		 //$('copyMeterReasonDesc').value=$('copyMeterReasonId').options[1].desc;
             		 if($('copyMeterReasonId').selectedIndex <= 0)
             		 validationAlert("selectCopyMeterReason",true,"${key.this_meter_less_than_last_meter}");
				}
			   else{
             		$('meterReason').className="aux_intable_td2";
             		//Validation.changeElmValidate("copyMeterReasonId","");
             		validationAlert("selectCopyMeterReason",false,"${key.this_meter_less_than_last_meter}");

          		}
           }
           }
       }
	/**
	 * 功能描述：根据不同的抄表选项显示不同的异常选择标签样式
	 * @author 张红丽
	 * @param reasonId 下拉框标签的td Id
	 * @param sel      下拉框的Id
	 * @param input    关联的文本框 Id
	 * @param selStyle 下拉框的样式
	 * @param tabStyle 标签的td样式,selStyle选择标签的样式
	 */
	 function changeStyle(reasonTd,sel,input,focusInput,tdStyle,selStyle){
		var eventSource=Event.element(event);
	   	$(reasonTd).className=tdStyle;
	   	if(!selStyle){
	   		//Validation.changeElmValidate(sel,"");
	   		$(input).readOnly=true;
	   		$(focusInput).focus();
	   	}else{
	   		//Validation.changeElmValidate(sel,selStyle);
			$(input).readOlny=false;

	   	}
	   	if(eventSource.name == "readmeter" && eventSource.value == 0 ){
		   validationAlert('selectCopyMeterReason',false);
		  if($('copyMeterReasonId').selectedIndex == 0){
		  	validationAlert("selectCopyMeterReason",true,"${key.meter_reason_exception}");
		  }
		}
		else if(eventSource.name == "readmeter" && eventSource.value == 1){
			validationAlert("selectCopyMeterReason",false,"${key.meter_reason_exception}");
		}
		else if(eventSource.name == "checkHouse" && eventSource.value == 0)
		{
			if($('checkReasonId').selectedIndex == 0){
				validationAlert("selectCheckHouseReason",true,"${key.check_house_reason_exception}");
			}
		}
		else if(eventSource.name == "checkHouse" && eventSource.value == 1){
		   validationAlert("selectCheckHouseReason",false,"${key.check_house_reason_exception}");
		}
		else if(eventSource.name == "handoverGoods" && eventSource.value == 0){
		    if($('handoverReasonId').selectedIndex == 0){
				validationAlert("selectHandoverReason",true,"${key.handover_reason_exception}");
		    }
		}
		else if(eventSource.name == "handoverGoods" && eventSource.value == 1){
			validationAlert("selectHandoverReason",false,"${key.handover_reason_exception}");
		}

	 }




      /**
       * 功能描述： 初始化退伙申请表页面信息
       */
      function init(){
     	readmeterState =  ${goOut.readmeter}; //是否录入了走表数据 1:是  0:否

        $('sysCurrentDate').value="${currentDate}";
        initMeterSelect();
        if($('copyMeterReasonId').selectedIndex <= 0){
        	$('copyMeterReasonDesc').readOnly=true;
        }

        if($('checkReasonId').selectedIndex <= 0){
       	$('checkReasonDesc').readOnly = true;
        }

        if($('handoverReasonId').selectedIndex <= 0){
        	$('handoverReasonDesc').readOnly=true;
        }

		//设置审核人验证信息
		$('outChecker').validateUrl="${ctx}/house_proRightModificationAction.do?method=checkExaminer&userId="+${goOut.outCheckerId }+"&houseId="+${goOut.houseId }
		$('chargeChecker').validateUrl="${ctx}/house_proRightModificationAction.do?method=checkExaminer&userId="+${goOut.chargeCheckerId }+"&houseId="+${goOut.houseId }

}

		/**
		 * 功能描述: 初始化异常下拉框
		 */

	   function initMeterSelect(){

			   //抄表异常
			   var size = "${meterReasonListSize}";
			   var metherOptions = $('copyMeterReasonId').options;

			     //初始化下拉框时，给下拉框选项添加一个属性(desc)用于存储异常说明
			  	 <c:forEach var="item" items="${meterReasonList }">
			  	   for(var i = 0 ; i<= size;i++ ){
			  	     if(metherOptions[i].value=="${item.id}"){
			  	        metherOptions[i].desc="${item.description}";
			  	     }
			  	     if(metherOptions[i].value == "${goOut.copyMeterReasonId}"){

			  	     	$('copyMeterReasonId').selectedIndex = i;
			  	     }
			  	   }

				 </c:forEach>

				  if("${goOut.readmeter}" == 1){
				    $('readmeter1').checked=true;
				    $('readmeter1').click();
				 }else if("${goOut.readmeter}" == 0){
					 $('readmeter0').checked=true;
					 $('readmeter0').click();
					 }

				 //验房异常
				 var checkHouseSize = "${checkHouseReasonListSize}";
				 var checkHouseOptions = $('checkReasonId').options;
				<c:forEach var="item" items="${checkHouseReasonList }">
			  	   for(var i = 0 ; i<= checkHouseSize;i++ ){
			  	     if(checkHouseOptions[i].value=="${item.id}"){
			  	        checkHouseOptions[i].desc="${item.description}";
			  	     }
			  	     if(checkHouseOptions[i].value == "${goOut.checkReasonId}"){
			  	     	$('checkReasonId').selectedIndex = i;
			  	     }
			  	   }
				 </c:forEach>
				if("${goOut.checkHouse}" == 1){
				    $('checkHouse1').checked=true;
				    $('checkHouse1').click();
				 	}else if("${goOut.checkHouse}" == 0){
					 $('checkHouse0').checked=true;
					 $('checkHouse0').click();
					 }
				//移交物品
				var handoverSize = "${handoverReasonListSize}";
				var handoverOptions = $('handoverReasonId').options;
				<c:forEach var="item" items="${handoverReasonList}">
			  	   for(var i = 0 ; i<= handoverSize;i++ ){
			  	     if(handoverOptions[i].value=="${item.id}"){
			  	        handoverOptions[i].desc="${item.description}";
			  	     }
			  	     if(handoverOptions[i].value == "${goOut.handoverReasonId}"){
			  	     	$('handoverReasonId').selectedIndex = i;
			  	     }
			  	   }
				 </c:forEach>

				if("${goOut.handoverGoods}" == 1){
				    $('handoverGoods1').checked=true;
				    $('handoverGoods1').click();
				}else if("${goOut.handoverGoods}" == 0){
					 $('handoverGoods0').checked=true;
					 $('handoverGoods0').click();
				}

	   }




	/**
    * 功能描述： 当由不抄表到抄表时，根据房号返回该房屋的抄表数据
    */
    function setMeterData(response,input){
     var flag = $('isRecordFeel').value;
     var keyword = $('keyword').value;
       var url = "${ctx}/house_proRightModificationAction.do?method=getOwnerNameAndMeterData&keyword="+keyword;
       var houseNumber = $('houseNumber').value;
		new Ajax.Request(url,
			         { method:'post',
					   parameters:{houseNumber:houseNumber,flag:flag},
					   onSuccess:back
					 }
					);
     }

	function back(response){

   		if(readmeterState == 0){

	   		var json = response.responseText;

	   		json = eval("("+json+")");

	   		if(json.type001.lastReading != null){
	   			$('spLastWater').innerHTML = FormatNumber(json.type001.lastReading,2)+"　${key.waterUnit}";
	   		}
	   		$('copyMeterWaterPreReading').value= FormatNumber(json.type001.lastReading,2);
	   		//上次抄表电表读数

			if(json.type002.lastReading != null){
	   			$('spLastAmmeter').innerHTML=FormatNumber(json.type002.lastReading,2) + "　${key.ammterUnit}";
	   		}
	   		$('copyMeterAmmeterPreReading').value=json.type002.lastReading;


			//设置截止缴费日期的只读性
			$('endPayDateDiv_true').style.display = "block";
			$('endPayDateDiv_false').style.display = "none";

		}else{
			//设置截止缴费日期的只读性
			$('endPayDateDiv_true').style.display = "none";
			$('endPayDateDiv_false').style.display = "block";
		}
   		//compareTowMeter();
	}

	//
	function readingChangeCheck(){
	}


</script>
</head>

<body onload="init();">
  <form id="editGoOutForm" name="editGoOutForm" method="post" action="${ctx}/house_proRightModificationAction.do?method=editGoOut" class="required-validate">
  <input type="submit" id="mySubmit" style="display:none">
  <input type="hidden" name="keyword" id="keyword" value="${goOut.keyword }"/>
  <input type="hidden" name="isRecordFeel" id="isRecordFeel" value="<c:if test='${goOut.copyMeterAmmeterPreReading != null || goOut.copyMeterWaterPreReading != null }'>true</c:if>">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="${ctx }/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">${key.edit_go_out_examine }</span></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td class="aux_header_line_1"></td>
    </tr>
    <tr>
      <td class="aux_header_line_2"></td>
    </tr>
    <tr>
      <td valign="middle" class="content">

	  <div  style="height:410px;overflow:auto;">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="container_in_show">
        <tr>
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab_subMenu1">
            <tr>
              <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
                <tr>
                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
                    <tr>
                      <td colspan="4" class="aux_titletable">${key.proposer }</td>
                    </tr>

                    <tr>

                      <td class="aux_intable_td1">${key.house_number }：</td>
                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td  class="aux_intable_td2">${goOut.houseNumber }
                          <input type="hidden" id="houseNumber" value="${goOut.houseNumber }">
                          <input name="houseId" id="houseId" type="hidden" value="${goOut.houseId }"  />
						  <input name="sysCurrentDate" id="sysCurrentDate" type="hidden" value="" />

                          <!--  <input name="houseNumber" id="houseNumber" type="text" value="${goOut.houseNumber }" class="required validate-ajax" size="16"
                          		 onSuccess="setCustomerName" onFailure="clearCustomerName"
                          		 validateUrl="${ctx}/house_proRightModificationAction.do?method=checkHouseNumber" />
                          </td>-->
                          <td width="4">&nbsp;</td>
                          <td><!--  <a href="#"  onClick="openSelectHouse();"onFocus="this.blur()"><img src="${ctx }/images/ico_houesno.GIF" alt="请点选查找房号" border="0"></a>--></td>
                        </tr>
                      </table></td>
                      <td class="aux_intable_td1">${key.out_date }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
	                            <input name="inDate" id="inDate" type="hidden" value="${goOut.inDate}" />
	                            <input name="outDate"  id="outDate" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-inDate" afterInsert="outDateSpan"  value="<fmt:formatDate pattern='yyyy-MM-dd' value='${goOut.outDate}'/>"  size="16"  validateMessage="${key.outDate_exception }<fmt:formatDate pattern='yyyy-MM-dd' value='${goOut.inDate }' />" /></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgOutDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="outDateSpan"></span></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.owner }：</td>
                      <td class="aux_intable_td2"><span id="tdCustomerName">${goOut.clients }</span></td>
                      <td class="aux_intable_td1">
                      <td class="aux_intable_td2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="4" class="aux_titletable">${key.last_copy_data }</td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.water_data }：</td>
                      <td class="aux_intable_td2">
                      <span id="spLastWater">
                      <c:if test="${goOut.copyMeterWaterPreReading != null }">
                       <fmt:formatNumber pattern="##.##" type="number" value="${goOut.copyMeterWaterPreReading }" /> ${key.waterUnit }
                      </c:if>
                      </span>
					   <input type="hidden" id="copyMeterWaterPreReading" name="copyMeterWaterPreReading"  value="${goOut.copyMeterWaterPreReading }" />
                      </td>
                      <td class="aux_intable_td1">${key.ammter_data }：</td>
                      <td class="aux_intable_td2">
                      <input type="hidden" name="copyMeterAmmeterPreReading" id="copyMeterAmmeterPreReading" value="${goOut.copyMeterAmmeterPreReading }"/>
                      <span id="spLastAmmeter">
                      <c:if test="${goOut.copyMeterAmmeterPreReading != null}">
                      	 <fmt:formatNumber pattern="##.##" type="number" value="${goOut.copyMeterAmmeterPreReading }" /> ${key.ammterUnit }
                      </c:if>
                      </span></td>
                    </tr>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.this_copy_data }&nbsp;　&nbsp;　&nbsp;　
                                <input name="readmeter" id="readmeter1" type="radio" value="1" checked="checked"  onClick="display('table01','show');changeStyle('meterReason','copyMeterReasonId','copyMeterReasonDesc','copyMeterWaterReading','aux_intable_td2');setMeterData()">
                                  ${key.record_meter_data }                                &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;
                                  <input type="radio" name="readmeter" id="readmeter0" value="0" onClick="display('table01','hidden');changeStyle('meterReason','copyMeterReasonId','copyMeterReasonDesc','copyMeterWaterReading','aux_intable_require','select-one-required');" >
                        ${key.not_record_meter_data }</td>
                    </tr>
                      <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table01" style="display:show">
						<tr>
                        <td class="aux_intable_td1">${key.water_data }：</td>
                        <td class="aux_intable_require"><input name="copyMeterWaterReading" id="copyMeterWaterReading" type="text" onblur="compareTowMeter();" class="required integer-decimal-range-10-2" maxLength="12" value="<fmt:formatNumber pattern='##.##' type='number' value='${goOut.copyMeterWaterReading }'  />" size="16" />
                        ${key.waterUnit }</td>
                        <td class="aux_intable_td1">${key.ammter_data }：</td>
                        <td class="aux_intable_require"><input name="copyMeterAmmeterReading" id="copyMeterAmmeterReading" type="text"  onblur="compareTowMeter();" class=" required integer-decimal-range-10-2" maxLength="12" value="<fmt:formatNumber pattern='##.##' type='number' value='${goOut.copyMeterAmmeterReading }'  />" size="16"  />
                          ${key.ammterUnit }</td>
                      </tr>
                      <tr>
                        <td class="aux_intable_td1">${key.copy_meter_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="copyTime"  id="copyTime" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value="<fmt:formatDate pattern='yyyy-MM-dd' value='${goOut.copyTime }'/>" size="16" validateMessage="${key.copy_meter_date_exception }" afterInsert="copyTimeSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgCopyMeterDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"/><span id="copyTimeSpan"></span></td>
                          </tr>
                        </table></td>



                        <td class="aux_intable_td1"></td>
                        <td class="aux_intable_td2"></td>
                      </tr>

                    </tbody>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table02">
                      <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="meterReason">
                         <pms:unitedSelect id="copyMeterReasonId"
                                            selectText="${key.select_text }"
                                            style="width:114px"
											name="copyMeterReasonId"
											dataList="${meterReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('copyMeterReasonDesc',this,this.selectedIndex);clearValidate('selectCopyMeterReason',this,'readmeter0','${key.meter_reason_exception }');"
											>
										</pms:unitedSelect><span id="selectCopyMeterReason"></span>
								    </td>
                        <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="copyMeterReasonDesc" id="copyMeterReasonDesc" type="text"  value="${goOut.copyMeterReasonDesc }" size="16" maxLength="500">                       </td>
                      </tr>
                    </tbody>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.check_house }&nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp; &nbsp; &nbsp;　
                         <input name="checkHouse" type="radio" id="checkHouse1" value="1" checked="checked"  onClick="display('tb03','show');changeStyle('checkHouseReason','checkReasonId','checkReasonDesc','houseDesc','aux_intable_td2');" >
                         ${key.check_house }                         &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp; &nbsp;　&nbsp;　&nbsp;　&nbsp;&nbsp;
                         <input type="radio" name="checkHouse" id="checkHouse0" value="0" onClick="display('tb03','hidden');changeStyle('checkHouseReason','checkReasonId','checkReasonDesc','houseDesc','aux_intable_require','select-one-required');" >
                        ${key.not_check_house }</td>
                    </tr>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tb03" style="display:show">
                      <tr>
                        <td valign="top" class="aux_intable_td1">${key.check_house_description }：</td>
                        <td colspan="3" valign="top" class="aux_intable_require_more"><textarea name="houseDesc" id="houseDesc" cols="55" rows="4"  class="required max-lengthB-300" onKeyDown='if (this.value.length>=300 && event.keyCode != 8 && event.keyCode != 46){event.returnValue=false}'>${goOut.houseDesc }</textarea>                        </td>
                      </tr>
                      <tr>
                        <td class="aux_intable_td1">${key.checker }：</td>
                        <td class="aux_intable_require"><input name="checker" id="checker" type="text" class="required validate-char" value="${goOut.checker }" size="16" maxLength="36">                        </td>
                        <td class="aux_intable_td1">${key.check_house_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="checkDate" id="checkDate" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value="<fmt:formatDate pattern='yyyy-MM-dd' value='${goOut.checkDate }'/>" size="16" validateMessage="${key.check_house_date_exception }" afterInsert="checkHouseSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgCheckHouseDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20" /><span id="checkHouseSpan"></span></td>
                          </tr>
                        </table></td>
                      </tr>
                    </tbody>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tb04">
                      <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="checkHouseReason"> <pms:unitedSelect id="checkReasonId"
                        					style="width:114px"
                                            selectText="${key.select_text }"
											name="checkReasonId"
											dataList="${checkHouseReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('checkReasonDesc',this,this.selectedIndex);clearValidate('selectCheckHouseReason',this,'checkHouse0','${key.check_house_reason_exception }');"
											 >
										</pms:unitedSelect><span id="selectCheckHouseReason"></span>           </td>
                         <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="checkReasonDesc" id="checkReasonDesc" type="text" class="inputtext"  value="${goOut.checkReasonDesc }" maxlength="500" size="16">                       </td>
                      </tr>
                    </tbody>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.handover_goods }&nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;&nbsp; &nbsp; &nbsp;
                                   <input name="handoverGoods" id="handoverGoods1" type="radio" value="1" checked="checked"  onClick="display('tab05','show');changeStyle('handoverGoodsReason','handoverReasonId','handoverReasonDesc','goods','aux_intable_td2');" />
                                   ${key.has_handover_goods }                                &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;　
                                   <input type="radio" name="handoverGoods" id="handoverGoods0" value="0" onClick="display('tab05','hidden');changeStyle('handoverGoodsReason','handoverReasonId','handoverReasonDesc','goods','aux_intable_require','select-one-required');" >
                        ${key.has_no_handover_goods }</td>
                    </tr>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tab05" style="display:show">
                      <tr>
                        <td class="aux_intable_td1">${key.handover_goods }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
                     	    <input name="goodIds" id="goodIds" type="hidden" value="${goOut.goodIds }" />
                            <input name="goods" id="goods" readOnly="true" type="text" class="required" value="${goOut.goods }" size="16"></td>
                            <td width="4">&nbsp;</td>
                            <td><a href="#" onClick="openGoodsHandOver();"onFocus="this.blur()"><img src="${ctx }/images/ico_custom-mume.GIF" width="16" height="16" border="0"></a></td>
                          </tr>
                        </table></td>
                        <td class="aux_intable_td1">${key.handover_goods_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="handoverDate" id="handoverDate" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value="<fmt:formatDate pattern='yyyy-MM-dd' value='${goOut.handoverDate}'/>" size="16" validateMessage="${key.handover_goods_date_exception }" afterInsert="handoverDateSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgGoodsHandOverDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20" /><span id="handoverDateSpan"></span></td>
                          </tr>
                        </table></td>
                      </tr>
                    </tbody>
				    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tab06">
                       <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="handoverGoodsReason"><pms:unitedSelect id="handoverReasonId"
                        					style="width:114px"
                                            selectText="${key.select_text }"
											name="handoverReasonId"
											dataList="${handoverReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('handoverReasonDesc',this,this.selectedIndex);clearValidate('selectHandoverReason',this,'handoverGoods0','${key.handover_reason_exception }');"
											 >
										</pms:unitedSelect><span id="selectHandoverReason"></span></td>
                        <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="handoverReasonDesc" id="handoverReasonDesc" type="text" class="inputtext" value="${goOut.handoverReasonDesc }" maxlength="500" size="16">                       </td>
                      </tr>
                    </tbody>
					 <tr>
                      <td colspan="4" class="aux_titletable">${key.choose_examiner }</td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.charge_examiner }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td>
                          <input type="hidden" name="chargeCheckerId" id="chargeCheckerId" value="${goOut.chargeCheckerId}" />
                          <input name="chargeChecker" id="chargeChecker" readOnly="true" type="text" class="required validate-ajax"
                          validateUrl=""  validateMessage="${key.not_purview_exception }"  size="16" value="${goOut.chargeChecker }" afterInsert="chargeCheckerSpan"></td>
                          <td width="4">&nbsp;</td>
                          <td><a href="#"  onClick="openChooseAssessor(0);" onFocus="this.blur()"><img src="${ctx }/images/ico_cz.gif" width="16" height="16" border="0" ></a><span id="chargeCheckerSpan"></span></td>
                        </tr>
                      </table></td>
                      <td class="aux_intable_td1">${key.go_out_examiner }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
                            <input type="hidden" name="outCheckerId" id="outCheckerId" value="${goOut.outCheckerId }" />
                            <input name="outChecker" id="outChecker" readOnly="true" type="text" class="required  validate-ajax"
                             validateUrl=""   validateMessage="${key.not_purview_exception }"   value="${goOut.outChecker }" size="16" afterInsert="outCheckerSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><a href="#"  onClick="openChooseAssessor(1);"onFocus="this.blur()"><img src="${ctx }/images/ico_cz.gif" width="16" height="16" border="0" ></a><span id="outCheckerSpan"></span></td>
                          </tr>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      </table>
      </div>

	  </td>
    </tr>
    <tr>
      <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_61"></td>
              <td class="buttonOffMiddle" id="btn1_62" onClick="submitForm('editGoOutForm');" onMouseOver="btn_change_over(6)" onMouseOut="btn_change_out(6)" onblur="btn_change(6)"><img src="${ctx }/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.submit }</td>
              <td class="buttonOffRight" id="btn1_63"></td>
            </tr>
          </table></td>
          <td class="btn_between_space"></td>
          <td></td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_71"></td>
              <td class="buttonOffMiddle" id="btn1_72" onClick="windowClose();" onMouseOver="btn_change_over(7)" onMouseOut="btn_change_out(7)" onblur="btn_change(7)"><img src="${ctx }/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.close }</td>
              <td class="buttonOffRight" id="btn1_73"></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
  </form>
 <script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "outDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgOutDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "copyTime", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgCopyMeterDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "checkDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgCheckHouseDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "handoverDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgGoodsHandOverDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );

                   Calendar.setup(
              {
	              inputField : "endPayDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgEndPayDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


</script>
</body>
</html>